package com.baizhi.elastic.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Data
@Document(indexName = "projectname",type = "post")
public class Post {

	@Id
	private String id;

	private String title;
	private String content;
	private int userId;
	private int weight;
}
